﻿namespace ListSamples
{
    public class FindCountry
    {
        private readonly string _country;//只读字段
        public FindCountry(string country)//构造函数
        {
            _country = country;   
        }

        public bool FindCountryPredicate(Racer racer)//方法
        {
            //判断
            return racer?.Country == _country;
        }
    }
}
